<!-- begin page-header -->
<div class="col-md-12">
  <div class="col-md-4">
  <h1 class="page-header">Danh sách chủ đề <small></small></h1>   
  </div> 
  <div class=" col-md-8 searchform">
          <form method="get" class=" navbar-form navbar-right" role="search">

        <select name="searchby" class="btn">
                <option value="1">By Id</option>
                <option value="2">By Name</option>
        </select>
        <div class="form-group">
            <input type="search" name="search" class="form-control" placeholder="Search">
        </div>
            <button type="submit" class="btn btn-search"><i class="fa fa-search"></i></button>
      </form>
    </div>
      <!-- end page-header -->
</div>
      <!-- begin row -->
      <div class="row">
                <!-- begin col-12 ------------------------------------------------>
      <div class="col-md-12" > 
        <div class="ui-jqgrid-bdiv" style="height: auto;  display: block;">
          <div style="position:relative;">
            <div></div>
            <table id="jqgrid" tabindex="0" cellspacing="0" cellpadding="0"  role="grid" aria-multiselectable="true" aria-labelledby="gbox_jqgrid" class="ui-jqgrid-btable table table-bordered table-striped" style="width: 100%;">
              <tbody>
                <thead>
                <tr class="ui-jqgrid-labels tableadmin" role="rowheader" style="ui-jqgrid-htable table table-bordered table-hover;background-color:#eee;background-image:-webkit-linear-gradient(top,#DBDBDB 0,#fafafa 100%);text-align:center">
                  
                  <th id="jqgrid_act" role="columnheader" class="" style="width: 80px;">
                    <div id="jqgh_jqgrid_act" class="ui-jqgrid-sortable">Actions</div>
                  </th>
                  
                  <th id="jqgrid_act" role="columnheader" class="" style="width: 50px;">
                    <div id="jqgh_jqgrid_act" class="ui-jqgrid-sortable">Mã </div>
                  </th>
                  <th id="jqgrid_act" role="columnheader" class="" style="width: 150px;">
                    <div id="jqgh_jqgrid_act" class="ui-jqgrid-sortable">Tên chủ đề</div>
                  </th>
                  
                </tr>
              </thead>
                <?php foreach($paginator as $data){?>
                <form method="post">
                  <tr role="row" id="8" tabindex="-1" class="ui-widget-content jqgrow ui-row-ltr">
                    
            
                    <td role="gridcell" style="" title="" aria-describedby="jqgrid_act">
            
                      <a href="<?php echo $this->url('admin', array('action'=>'editcate','id'=> $data->categories_id));?>">
                      <button type="button" name="sua" title="Sửa" class="btn btn-xs btn-default" data-original-title="Save Row" >
                        <i class="fa fa-pencil"></i>
                      </button>
            
                    
                      <a href="<?php echo $this->url('admin', array('action'=>'delcate','id'=>$data->categories_id));?>">
                      <button type="submit" name="xoa" class="btn btn-xs btn-default" title="Xóa" data-original-title="Cancel" >
                        <i class="fa fa-times"></i>
                      </a>
                    </td>
                    
                    <td role="gridcell"  aria-describedby="jqgrid_date">

                        <input type="text" name="advertise_id" readonly style="border:none;background: none;width: 40px !important;" value="<?php echo $this->escapeHtml($data->categories_id) ;?> ">
                    </td>
                    
                    <td role="gridcell" style="text-align:left;"  aria-describedby="jqgrid_amount">
                         <?php echo $this->escapeHtml($data->name);?>
                    </td>
                                
                  </tr>
                </form>
                <?php  }?>
              </tbody>
            </table>
          </div>
        </div>
    </div>
    <!-- end col-2 ---------------------------------------------->
</div>
<!-- end row -->
 
  <?php

 echo $this->paginationControl(
     // the paginator object
     $this->paginator,
     // the scrolling style
     'sliding',
     // the partial to use to render the control
     array('partial/paginator.phtml', 'admin'),
     // the route to link to when a user clicks a control link
     array(
         'route' => 'indexvideo'
     )
 );
 ?>
<?php
$message = $this->layout()->message;
if(isset($message))
{
?>
  <script type="text/javascript">
  $(document).ready(function(){
      alert('<?php echo $message ;?>');
  });
  </script>
<?php }?>   
